var aArray = [1, 4, 5];

var i = 0;

// while循环
while (i < aArray.length) {
    console.log(aArray[i])
    i++;
}

// do while循环
i = 0;
do {
    console.log(aArray[i]);
    i++;
} while (i < aArray.length);

// for循环
for (i = 0; i < aArray.length; i++) {
    console.log(aArray[i])
}